//
//  LSTrialSwitchCell.h
//  lightSpot
//
//  Created by lightSpot  on 2023.
//  Copyright © 2023 lightSpot . All rights reserved.
//

#import "BaseTableViewCell.h"

@class LSTrialSwitchCell;
@class LSTrialSwitchCellModel;

@protocol LSTrialSwitchCellDelegate <NSObject>

- (void)trialSwitchCell:(LSTrialSwitchCell *)cell isOn:(BOOL)isOn;

@end

@interface LSTrialSwitchCell : BaseTableViewCell

@property (nonatomic,weak) id<LSTrialSwitchCellDelegate> delegate;
@property (strong, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UISwitch *mySwitch;
@property (strong, nonatomic) LSTrialSwitchCellModel *model;

@end



#pragma mark - Model

@interface LSTrialSwitchCellModel : NSObject

@property (nonatomic,copy) NSString *title;
@property (nonatomic,assign) BOOL isOn;

+ (LSTrialSwitchCellModel *)ittemModelWithTitle:(NSString *)title isOn:(BOOL)isOn;

@end



